package com.tele.service.imps;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tele.domain.Support;
import com.tele.mapper.SupportMapper;
import com.tele.service.ints.SupportService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SupportServiceImp extends ServiceImpl<SupportMapper, Support> implements SupportService {
    @Override
    public List<Support> getAllSupport() {
        return baseMapper.selectList(null);
    }

    @Override
    public int insertSupport(Support support) {
        return baseMapper.insert(support);
    }

    @Override
    public int updateSupport(Support support) {
        return baseMapper.updateById(support);
    }

    @Override
    public int delSupport(Support support) {
        return baseMapper.deleteById(support);
    }

}
